﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>用户信息管理</title>
	</head>
	<body>

		<div class="rhead">
			<div class="rpos">
				当前位置: 用户管理  - 会员信息管理
			</div>
			<div class="ropt">
				<a href="memberAgentAction!add_page.action?userType=0">新增</a>
			</div>
			<div class="clear"></div>
			 
		</div>

		<form action="memberAgentAction!queryMember.action" method="post">
			<table class="listTable2">
				<tr>
					<td class="pn-flabel" style="text-align: left; padding-left: 15px;">
						会员代理类型：
						<select name="id">
							<option value="">全部</option>
							<c:forEach var="roles" items="${rolesList}">
								<option value="${roles.id}" <c:if test="${roles.id==id}">selected</c:if>>
									${roles.name}
								</option>
							</c:forEach>
						</select>

						<input type="submit" style="margin-left: 30px;"
							class="default_button" value="查询" />
					</td>
				</tr>
			</table>
		</form>

		<table class="listTable3" onmouseover="changeto()"
			onmouseout="changeback()">
			<tr class="headbg">
				<td>
					用户名
				</td>
				<td>
					会员级别
				</td>
				<td>
					手机号码
				</td>
				<td>
					姓名
				</td>
				<td>
					店名
				</td>
				<td>
					基本操作
				</td>
			</tr>

			<c:forEach var="tusers" items="${usersList}">
				<tr>
					<td>
						${tusers.loginName}
					</td>
					<td>
						<c:forEach var="ro" items="${tusers.usersRoleses}">
							${ro.roles.name}&nbsp;&nbsp;&nbsp;&nbsp;
						</c:forEach>
					</td>
					<td>
						${tusers.mobile}
					</td>
					<td>
						${tusers.name}
					</td>
					<td>
						${tusers.workunit}
					</td>
					<td>
						<a href="memberAgentAction!view.action?id=${tusers.id}&userType=0">
							查看 </a>&nbsp; &nbsp;
						<a href="memberAgentAction!edit.action?id=${tusers.id}&userType=0&_pageNo=<s:property value="pager.pageNo" />">
							编辑 </a>&nbsp; &nbsp;
						<a
							href="updatePasswordAction!resetview.action?id=${tusers.id}&userType=0">
							重置密码 </a>&nbsp; &nbsp;

						<a
							href="memberAgentAction!delete.action?id=${tusers.id}&userType=0"
							onclick=
	{
		if (confirm('你真的要删除吗?')) {
			return true;
		}
		return false;
	};
>
							删除 </a>
					</td>
				</tr>
			</c:forEach>
		</table>
		<s:form action="memberAgentAction!queryMember" method="post"
			name="form1" theme="simple">
			<input type="hidden"  name="id" value="${id}" />
				
			<table class="listTable2">
				<tr>
					<td width="50%">
						&nbsp;&nbsp;共有
						<s:property value="pager.rowCount" />
						条记录，每页行数：
						<s:select name="pageSize" list="pager.pageSizeIndexs"
							theme="simple" value="pager.pageSize"
							onchange="document.all.pageNo.value='1';document.all.form1.submit();" />
						当前第
						<s:select name="pageNo" list="pager.pageNoIndexs" theme="simple"
							value="pager.pageNo" onchange="document.all.form1.submit();" />
						页
					</td>
					<td width="200px">
						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.firstPageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/first.gif" width="37" height="15" />
						</a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.prePageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/back.gif" width="43" height="15" /> </a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.nextPageNo"/>';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/next.gif" width="43" height="15" /> </a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.lastPageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/last.gif" width="37" height="15" /> </a>
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>

